package cn.iune.erp.sale;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface ISaleOrderDetailDao {
	
	public void insert(SaleOrderDetail obj);
	
	public void delete(String fID);
	
	public SaleOrderDetail update(SaleOrderDetail obj);

	public List<SaleOrderDetail> getAll();
	
	public List<SaleOrderDetail> getByMasterID(String fMasterID);
	
	public SaleOrderDetail getByID(String fID);
	
	public List<SaleOrderDetail> getByStorageNo(String storageNo, String factoryNo, String enterpriseNo);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject querySimple(JSONObject data) throws SQLException;

	List<SaleOrderDetail> getByCustomerID(String customerID);

	SaleOrderDetail getByNo(String orderNo, String serialNo, String enterpriseNo);

	JSONObject create(JSONObject data);


}
